package de.fmaul.common.io;

import java.io.File;

public class Files {

	/**
	 * Finds files or sub directories within a given base directory.
	 * 
	 * @param baseDirectory
	 *            A path string representing a directory to search within.
	 * @return A {@link FileFinder}-Object to specify the search parameters
	 *         using a builder pattern.
	 */
	public static FileFinder find(String baseDirectory) {
		return find(new File(baseDirectory));
	}

	/**
	 * Finds files or sub directories within a given base directory.
	 * 
	 * @param baseDirectory
	 *            A path as {@link File} object to search within.
	 * @return A {@link FileFinder} object to specify the search parameters
	 *         using a builder pattern.
	 */
	public static FileFinder find(File baseDirectory) {
		return new FileFinder(baseDirectory);
	}

}
